package com.smt.core.encryption.info;

import java.util.ArrayList;
import java.util.List;

public class EncryptedText 
{
	public String encryptedText;
	
	public String algorithmName;
	
	private String RSA_D;
	
	private String RSA_N;
	
	public EncryptedText(String RSA_D,String RSA_N , String encryptedText)
	{
		if (RSA_D != null) this.RSA_D = RSA_D;
		if (RSA_N != null) this.RSA_N = RSA_N;
		this.encryptedText = encryptedText;
	}
	
	public EncryptedText(String encryptedText)
	{
		this.encryptedText = encryptedText;
	}
	
	@Override
	public String toString(){
		return encryptedText;
	}
	
	public List<String> getCipher()
	{
		List<String> listCipher =  new ArrayList<String>();
		listCipher.add(RSA_D);
		listCipher.add(RSA_N);
		
		return listCipher;
	}
}
